package main.java.LeetCode.ClassicalAlgorithm.RateLimit;

import main.java.LeetCode.ClassicalAlgorithm.RateLimit.Impl.SlideWindow;

public class Main {
    public static void main(String[] args) throws InterruptedException {
        RateLimit slideWindow = new SlideWindow(20, 10);

        for (int i = 0; i < 40; i++) {
            Thread.sleep(50);
            System.out.println(i+": "+slideWindow.isLimit(1));
        }
    }
}
